home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 1
/
SPACE - Library 1 - Volume 1.iso
/
apps
/
558
/
1stword
/
install.doc
< prev
next >
Wrap
Text File
|
1986-02-11
|
13KB
|
410 lines
0660203030466
11st WordInstallation Guide
2Preliminarypage #7th February 1986
9[....................................................]
ü1STWORD
Ç
üPrinterInstallationGuide
Ç
ëCONTENTS
Ç
1 Introduction
2 FileFormat
3 PrinterName
4 ConfigurableVariables
5 PrinterCharacteristics
6 CharacterTranslationTable
ü1 IntroductionÇ
Thisdocumentisintendedforanyonewhowantstocreatea
printerconfigurationfileforaprinternotyetsupportedby
GST.Itexplainstheformatandcontentsoftheprinter
configurationfile,andhowitisusedbytheprinterdriver.
TheexistingprinterconfigurationfilesforQumeandEpson
compatibleprintersshouldbereadasexamples.
Whenproducingaconfigurationforaprinter,itmayprove
necessarytoconfiguretheprinteritself:manyprintershave
setsofswitcheswhichaffectthingssuchasautolinefeedor
paperlength.TheexistingEpsonprinterconfigurations
assumethattheprinterissetforaUSAcharacterset,noLF
afterCR,andnoperforationskip.
Withdaisywheelprinters,theactualdaisywheelinusewill
affecttherequirementsforthecharactertranslationtable.
IfyouaredrivingtheprinteronanRS232serialline,you
mayneedtoexperimentwiththecableconnections.Youmust
connectthehardwarehandshakelines,astheprinterdriver
doesnotusetheXON/XOFFhandshake.Thecableweuseis
connectedasfollows,andworksformostprinters:
AtariST Printer
Protect 1-----------1
TXdata 2-----------3
Handshake 5-----------20
SignalGround 7-----------7
ü2 FileFormatÇ
Theprinterconfigurationfileisatextfilewhichcanbe
editedusing1stWord.Mostofthedatainthefileis
numeric,andnumbersareassumedtobeinhexadecimal(base
16).Linesstartingwithanasterisk(*)arecomments.
ThisfileisreadbyaprogramcalledINSTALL.PRGwhichpacks
thisdataintoasmallbinaryfilewhichisthenusedbythe
printerdriver.
Thedataheldinthefilefallsintofoursections,described
insections3to6below.
ü3 PrinterNameÇ
Thefirstnon-blanklineinthefile(excludingcomments)is
assumedtobethenameoftheprinter.Thisnameis
displayedintheprinterdriver'swindow.
ü4 MiscellaneousConfigurableVariablesÇ
Thissectioncontainsalistofsixnumbers,onaline
together.Theyaredescribedbelow.
ü4.1 PrinterTypeÇ
Thisshouldbe1foradaisywheelprinterwhichallowsfine
controloverhorizontalandverticalprinting.Zerohere
indicatesadotmatrixprinter,orsomeothertypeof
printer.Daisywheelprinterswhichdonotallowfinecontrol
ofpositioning(egBrotherHR-1)shouldbeinstalledlike
this.
Theprinterdrivertreatsthetwotypesofprinterquite
differently.Onadaisywheelprinter,thespacesbetween
wordsareadjustedtospreadoutthespaceevenlybetweenthe
words.Thismeansthatinordertounderlinespaces,
underliningisdoneasaseparatepassafterthetext.In
NLQmode,changestoandfromitalictextcausetheprogram
topausetoallowthedaisywheeltobechanged.
Itisassumedthatnon-daisywheelprintershavecommand
sequencestocontrolunderliningandothertextstyles:the
commandissenttotheprinter,buttheprinterdriverdoes
nomorethanthat.Therearedifferentcommandsequencesto
besentindraftmodeandNLQmode.
ü4.2 UnitWidthÇ
(Daisywheelonly)Thisspecifiesthewidthofonecharacter
intheprinter'sownwidthunits.
ü
4.3 UnitHeightÇ
(Daisywheelonly)Thisspecifiesthesizeofalinefeedin
theprinter'sownheightunits.
ü4.4 MiddleofcarriageÇ
(Daisywheelonly)Thisspecifiesthepositionthedaisywheel
ismovedtowhenfeedingpaper:itshouldnormallybeinthe
middleofthepaper.Thepositionisspecifiedinprinter
unitsfromtheleftmargin.
♪≤ü4.5 CarriageshiftforBoldÇ
(Daisywheelonly)Thisspecifiesahorizontaloffsetusedby
theprinterdriverwhenprintingboldtext:itprintsthe
characteronce,movesalongafraction,andprintsagain.
ü4.6 PausebetweenpagesÇ
Ifzero,theprinterdriverdoesnotpausebetweenpages.If
nonzero,theprinterdriverpausesattheendofeachpageto
allowthepapertobechanged.
Thiswasnotpresentonearlyversionsoftheprogram:if
yourprinterconfigurationfileshaveonlyfiveentrieshere,
contactyourdealer(orAtari)forthenewversion.
ü5 PrinterCharacteristicsÇ
Thisisatableofcommandsequenceswhichmaybesenttothe
printer.Notallofthetableentriesmustbepresent,but
theymustbeinincreasingnumericorder.
Eachtableentry,ifpresent,startswithitsentrynumber.
Thecodestobesenttotheprinterthenfollow.Acomment
maybeincludedonthelineafteranasterisk.Avaluemore
than80(hex)isaplace-holderforvariablebinary
informationtobesenttotheprinter:thedifferenceafter
subtracting80isaddedtothevaluetobeoutput.(For
example,onaQume-compatibleprinter,commandstocontrol
characterwidthrequireavaluetobeoutputofwidth+1,so
theplaceholderinthecommandis81.)
Thetableisterminatedbyanullentry,buttheremustbeat
leastonenon-zeroentrybeforethis.
Inadditiontotheinitialisationstringslistedbelow,the
printerdriversendsallthecommandswhichturnoffprint
stylesatthestartofadocument.
ü5.0 SetCharacterWidthÇ
(Daisywheelonly)Thiscommandisusedtosendcharacter
widthchangestotheprinter.Itshouldcontainaplaceholder
forthewidth.
ü5.1 LinefeedÇ
Thiscommandcontainsthecodetobesenttotheprinterat
theendofaline.Typically,itisjustalinefeedfor
daisywheelprintersbeingdrivenbidirectionally,orlinefeed
andcarriagereturnfordotmatrixprinters.
ü5.2 ForwardPrint
5.3 BackwardPrint
Ç
(Daisywheelonly)Thesearethecommandstotelltheprinter
whichdirectiontomovetheprinthead.
♪∙ü5.4 VerticalTabÇ
(Optional)Thiscommandfeedsthepaperbyseverallines.The
commandshouldincludeaplaceholderforthelinenumber.If
thiscommandsequenceisomittedfromthetable,several
linefeedswillbeusedinstead.
♪⑦Thereisaslightproblemwithusingverticaltabsonsome
printers.Ifyouhaveadocumentwithover-longlines,and
theprinterautomaticallywrapslineswhicharetoolong,
thismaycausetheprinter'slinenumbertogetoutofstep
withtheprogram'slinenumber.Verticaltabswouldthen
typicallyskiptothestartofthenextpage.
ü5.5 AbsoluteHorizontalTabÇ
(Non-daisywheel,optional)Thiscommandisthehorizontal
equivalentoftheabove:itmoveshorizontallytoaspecified
characterposition.
ü5.6 DraftBoldOn
Ç
(Non-daisywheel,optional)Thisandthefollowingstyle
changecommandsaresenttotheprintertoswitchitintothe
appropriatetextstyle.Thereareseparatecommandsequences
tobesentinbothdraftmodeandNLQmode.
ü5.7 DraftBoldOff
5.8 NLQBoldOn
5.9 NLQBoldOff
ÇThisshouldensurethattheprinterisinnon-boldNLQmode,
aswellasturningoffbold.Allofthecommandswhichturn
offastyleinNLQmodeshouldensurethettheprinterisin
NLQ.
ü5.A DraftItalicOn
5.B DraftItalicOff
Ç
♪°ü5.C NLQItalicOnÇ
(Nondaisywheel)Wediscovered,whencreatingthe
configurationfilefortheEpsonLX-80,thatitcannotprint
italicNLQtext.ThiscommandintheLX-80driverturnsoff
NLQmode,andthenextoneturnsitbackon.
ü5.D NLQItalicOff
5.E DraftLightOn
5.F DraftLightOff
♪⑨5.10 NLQLightOn
Ç
(Nondaisywheel)InourLX-80configurationfile,wemake
"Light"textappearinanon-NLQfount.
ü5.11 NLQLightOff
♪⑦5.12 DraftSuperscriptOnÇ
Forcorrectjustificationoftext,superscriptandsubscript
charactersshouldbethesamewidthasnormaltext.Usea
halflinefeedondaisywheelprinters.
ü5.13 DraftSuperscriptOff
5.14 NLQSuperscriptOn
5.15NLQSuperscriptOff
5.16 DraftSubscriptOn
5.17 DraftSubscriptOff
5.18 NLQSubscriptOn
5.19 NLQSubscriptOff
5.1ADraftUnderlineOn
Ç
(Non-daisywheel)Notethatunderliningonadaisywheel
printerisperformedbyaseparatepassoftheline,sothat
underlinedstretchedspacesworkproperly.
ü5.1B DraftUnderlineOff
5.1C NLQUnderlineOn
5.1D NLQUnderlineOff
♪⑦5.1E FormfeedÇ
(Optional)Ifthiscodeisdefined,itisusedtofeedthe
papertothetopofthenextsheet.Ifnotdefined,linefeeds
willbeused.
♪⑦ü5.1F HorizontalInitialisationÇ
(Optional)Foranon-daisywheelprinter,thiscodeissent
onceonlyatthestartofthedocument.
Foradaisywheelprinter,thiscommandmayincludea
characterwidthcommand,andanyplaceholder(seeabove)will
bereplacedbythedefaultcharacterwidthfromü4.2Çabove.
ü5.20 VerticalInitialisationÇ
(Optional)Foranon-daisywheelprinter,thiscodeissent
onceonlyatthestartofthedocument.
Foradaisywheelprinter,thiscommandmayincludealinefeed
distancecommand,andanyplaceholder(seeabove)willbe
replacedbythedefaultlineheightfromü4.3Çabove.
Youmaywanttoincludeaformfeedinthisinitialisation
stringtoensurethattheprinterisatthestartofa
document.
ü5.21 PrinterResetÇ
(Optional)Thiscommandissenttotheprinterattheendof
thedocumenttoresetitforusebyotherprograms.
ü6 CharacterTranslationTable
Ç
Thistablehasasimilarstructuretothecommandtable
above,butitisusedtotranslatecharactersbefore
transmission.
MostoftheüfirsthalfÇoftheAtariextendedinternational
charactersetcanbesentdirectlytoaprinterwithout
translation.Thereneednotbeanyentryinthetablefora
standardasciicharacter.
Accentedcharactersandotherinternationalcharactersinthe
secondhalfofthecharactersetcanbeprintedonsome
printerseitherbyoverprintingorbysendingcommandstothe
printertoswitchfount.Inthiscasethetableentryshould
startwiththecodeofthecharactertobetranslated,
followedbythedatatobesenttotheprinter.
Whereacharactercannotbesatisfactorilyprinted,atable
entrygivingjustthecharactercodewithoutanytranslation
willcausetheprinterdrivertoskipthatcharacter.
Thetablemustbeinascendingorder,andterminatedwitha
zeroentry.
SeethestandardEpsonconfigurationforlanguagetranslation
commandstoaccesscharacters(itswitchesbacktotheUSA
fountforsomestandardasciisymbols).
SeethestandardQUMEconfigurationfileforaccented
charactersonanEnglishdaisywheelachievedbyoverprinting.
Thistablewillneedchangingfordifferentdaisywheels!
Thereisnofixedsizelimitonthesizeofthetable,so
adventurousinstallerscouldtryincludingcommandsto
downloadcharactershapesintodotmatrixprintersforsome
ofthemoreexoticcharacters.